<template>
	<view>
		<view @click="toDetails(item)" class="aaa" v-for="(item) in list">
			<image style="width: 100rpx;height: 100rpx;" src="../../static/logo.png" mode="aspectFill"></image>
			<text>{{item}}</text>
			<view class="anniu"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: ['废纸', '塑料制品', '废旧家电', '废旧五金']
			}
		},
		methods: {
			toDetails(e) {
				uni.navigateTo({
					url:"./whereaboutsDetails?title="+e
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #f7fafd;
	}

	.aaa {
		display: flex;
		justify-content: space-between;
		width: 70%;
		margin: 50rpx auto 50rpx auto;
		align-items: center;
		background-color: #ffffff;
		padding: 40rpx 0;
		padding-left: 40rpx;
		border-radius: 20rpx;
		box-shadow: 0 0 60rpx #dcdcdc;
	}

	.anniu {
		width: 100rpx;
		height: 50rpx;
		background-image: linear-gradient(to right, #21dd1a, #b6ffb2);
		border-radius: 50rpx 0 0 50rpx;
	}
</style>
